$(function(){
	$('#TrainingPlantable').datagrid({    
		 url:'TrainingPlantable', //数据源地址
	   columns:[[    
	   	{field:'number',fixed:false,width:213,title:'计划编号'},    
	       {field:'names',fixed:false,width:213,title:'计划名称'},    
	       {field:'bumen',fixed:false,width:213,title:'创建人'},
	       {field:'shenpiren',fixed:false,width:213,title:'培训地点'},
	       {field:'dates1',fixed:false,width:213,title:'开始时间'} ,
	       {field:'dates2',fixed:false,width:213,title:'结束时间'} ,
	       {field:'dates3',fixed:false,width:213,title:'状态'} ,
	       {field:'caozuo',fixed:false,width:213,formatter:operate_formatter,title:'操作'} 
	       
			    
	   ]],
	   toolbar:'#TrainingPlantable',
	   pagination:true,
	   pageNumber:1,
	   pageSize:5,
	   pageList:[5,10,15] 
	}); 
	$("#addTrainingPlan").click(function(){
		$("#addTrainingPlan_win").window("open");
	})
})
//在每个操作列里面添加编辑，查看，明细，删除
function operate_formatter(value, row, index) {
return "<a href='#' class='easyui-linkbutton'>编辑</a>/\
<a href='#' class='easyui-linkbutton'>删除</a> ";
}